package receipe;

import java.sql.Date;
import java.util.Collection;

import namespaces.NamespaceConstants;
import receipe.aggregaterating.AggregateRating;
import receipe.nutrition.Nutrition;
import receipe.review.Review;
import thewebsemantic.Namespace;
import thewebsemantic.RdfProperty;
import thewebsemantic.RdfType;

@Namespace(NamespaceConstants.SCHEMA)
@RdfType("Recipe")
public class Recipe extends Thing{
	
	@RdfProperty(NamespaceConstants.SCHEMA + "name")
	private String name;
	
	@RdfProperty(NamespaceConstants.SCHEMA + "author")
	private String author;
	
	@RdfProperty(NamespaceConstants.SCHEMA + "datePublished")
	private Date datePublished;
	
	@RdfProperty(NamespaceConstants.SCHEMA + "recipeCategory")
	private String recipeCategory;
	
	@RdfProperty(NamespaceConstants.SCHEMA + "totalTime")
	private String totalTime;
	
	@RdfProperty(NamespaceConstants.SCHEMA + "prepTime")
	private String prepTime;
	
	@RdfProperty(NamespaceConstants.SCHEMA + "cookTime")
	private String cookTime;
	
	@RdfProperty(NamespaceConstants.SCHEMA + "description")
	private String description;
	
	@RdfProperty(NamespaceConstants.SCHEMA + "ingredients")
	private String ingredients;
	
	@RdfProperty(NamespaceConstants.SCHEMA + "recipeInstructions")
	private String recipeInstructions;
	
	@RdfProperty(NamespaceConstants.SCHEMA + "recipeYield")
	private String recipeYield;
	
	@RdfProperty(NamespaceConstants.SCHEMA + "aggregateRating")
	private Collection<AggregateRating> aggregateRatings;
	
	@RdfProperty(NamespaceConstants.SCHEMA + "nutrition")
	private Collection<Nutrition> nutritions;
	
	@RdfProperty(NamespaceConstants.SCHEMA + "reviews")
	private Collection<Review> reviews;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public Date getDatePublished() {
		return datePublished;
	}

	public void setDatePublished(Date datePublished) {
		this.datePublished = datePublished;
	}

	public String getRecipeCategory() {
		return recipeCategory;
	}

	public void setRecipeCategory(String recipeCategory) {
		this.recipeCategory = recipeCategory;
	}

	public String getTotalTime() {
		return totalTime;
	}

	public void setTotalTime(String totalTime) {
		this.totalTime = totalTime;
	}

	public String getPrepTime() {
		return prepTime;
	}

	public void setPrepTime(String prepTime) {
		this.prepTime = prepTime;
	}

	public String getCookTime() {
		return cookTime;
	}

	public void setCookTime(String cookTime) {
		this.cookTime = cookTime;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getIngredients() {
		return ingredients;
	}

	public void setIngredients(String ingredients) {
		this.ingredients = ingredients;
	}

	public String getRecipeInstructions() {
		return recipeInstructions;
	}

	public void setRecipeInstructions(String recipeInstructions) {
		this.recipeInstructions = recipeInstructions;
	}

	public String getRecipeYield() {
		return recipeYield;
	}

	public void setRecipeYield(String recipeYield) {
		this.recipeYield = recipeYield;
	}

	public Collection<AggregateRating> getAggregateRatings() {
		return aggregateRatings;
	}

	public void setAggregateRatings(Collection<AggregateRating> aggregateRatings) {
		this.aggregateRatings = aggregateRatings;
	}

	public Collection<Nutrition> getNutritions() {
		return nutritions;
	}

	public void setNutritions(Collection<Nutrition> nutritions) {
		this.nutritions = nutritions;
	}

	public Collection<Review> getReviews() {
		return reviews;
	}

	public void setReviews(Collection<Review> reviews) {
		this.reviews = reviews;
	}

	@Override
	public String toString() {
		return "Recipe [name=" + name + ", author=" + author
				+ ", datePublished=" + datePublished + ", recipeCategory="
				+ recipeCategory + ", totalTime=" + totalTime + ", prepTime="
				+ prepTime + ", cookTime=" + cookTime + ", description="
				+ description + ", ingredients=" + ingredients
				+ ", recipeInstructions=" + recipeInstructions
				+ ", recipeYield=" + recipeYield + ", aggregateRatings="
				+ aggregateRatings + ", nutritions=" + nutritions
				+ ", reviews=" + reviews + "]";
	}
}
